﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

// 操作配置文件需要的命名空间
using System.Configuration;

namespace 实验7_学生成绩管理系统
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            /*string extPath = Application.ExecutablePath;
            Configuration config = ConfigurationManager.OpenExeConfiguration(extPath);*/

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FormLogin formlogin = new FormLogin();
            DialogResult dr = formlogin.ShowDialog();
            if (dr == DialogResult.OK)
            {
                bool bSucceed = Convert.ToBoolean(System.AppDomain.CurrentDomain.GetData("Succeed"));
                if (bSucceed)
                {
                    Application.Run(new FormMain());
                }
            }
        }
    }
}
